Optimal. Leaf size=378 \[ -\frac {e f-d g}{2 e^2 (2 c d-b e) \sqrt {d+e x} \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}+\frac {(7 c e f+c d g-4 b e g) \sqrt {d+e x}}{6 e^2 (2 c d-b e)^2 \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}-\frac {5 (7 c e f+c d g-4 b e g)}{12 e^2 (2 c d-b e)^3 \sqrt {d+e x} \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}+\frac {5 c (7 c e f+c d g-4 b e g) \sqrt {d+e x}}{4 e^2 (2 c d-b e)^4 \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac {5 c (7 c e f+c d g-4 b e g) \tanh ^{-1}\left (\frac {\sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{\sqrt {2 c d-b e} \sqrt {d+e x}}\right )}{4 e^2 (2 c d-b e)^{9/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.39, antiderivative size = 378, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 46, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.109, Rules used = {806, 680, 686,
674, 214} \begin {gather*} -\frac {e f-d g}{2 e^2 \sqrt {d+e x} (2 c d-b e) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}+\frac {5 c \sqrt {d+e x} (-4 b e g+c d g+7 c e f)}{4 e^2 (2 c d-b e)^4 \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac {5 (-4 b e g+c d g+7 c e f)}{12 e^2 \sqrt {d+e x} (2 c d-b e)^3 \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}+\frac {\sqrt {d+e x} (-4 b e g+c d g+7 c e f)}{6 e^2 (2 c d-b e)^2 \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}-\frac {5 c (-4 b e g+c d g+7 c e f) \tanh ^{-1}\left (\frac {\sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{\sqrt {d+e x} \sqrt {2 c d-b e}}\right )}{4 e^2 (2 c d-b e)^{9/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 674
Rule 680
Rule 686
Rule 806
Rubi steps
\begin {align*} \int \frac {f+g x}{\sqrt {d+e x} \left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{5/2}} \, dx &=-\frac {e f-d g}{2 e^2 (2 c d-b e) \sqrt {d+e x} \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}+\frac {(7 c e f+c d g-4 b e g) \int \frac {\sqrt {d+e x}}{\left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{5/2}} \, dx}{4 e (2 c d-b e)}\\ &=-\frac {e f-d g}{2 e^2 (2 c d-b e) \sqrt {d+e x} \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}+\frac {(7 c e f+c d g-4 b e g) \sqrt {d+e x}}{6 e^2 (2 c d-b e)^2 \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}+\frac {(5 (7 c e f+c d g-4 b e g)) \int \frac {1}{\sqrt {d+e x} \left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{3/2}} \, dx}{12 e (2 c d-b e)^2}\\ &=-\frac {e f-d g}{2 e^2 (2 c d-b e) \sqrt {d+e x} \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}+\frac {(7 c e f+c d g-4 b e g) \sqrt {d+e x}}{6 e^2 (2 c d-b e)^2 \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}-\frac {5 (7 c e f+c d g-4 b e g)}{12 e^2 (2 c d-b e)^3 \sqrt {d+e x} \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}+\frac {(5 c (7 c e f+c d g-4 b e g)) \int \frac {\sqrt {d+e x}}{\left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{3/2}} \, dx}{8 e (2 c d-b e)^3}\\ &=-\frac {e f-d g}{2 e^2 (2 c d-b e) \sqrt {d+e x} \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}+\frac {(7 c e f+c d g-4 b e g) \sqrt {d+e x}}{6 e^2 (2 c d-b e)^2 \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}-\frac {5 (7 c e f+c d g-4 b e g)}{12 e^2 (2 c d-b e)^3 \sqrt {d+e x} \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}+\frac {5 c (7 c e f+c d g-4 b e g) \sqrt {d+e x}}{4 e^2 (2 c d-b e)^4 \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}+\frac {(5 c (7 c e f+c d g-4 b e g)) \int \frac {1}{\sqrt {d+e x} \sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}} \, dx}{8 e (2 c d-b e)^4}\\ &=-\frac {e f-d g}{2 e^2 (2 c d-b e) \sqrt {d+e x} \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}+\frac {(7 c e f+c d g-4 b e g) \sqrt {d+e x}}{6 e^2 (2 c d-b e)^2 \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}-\frac {5 (7 c e f+c d g-4 b e g)}{12 e^2 (2 c d-b e)^3 \sqrt {d+e x} \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}+\frac {5 c (7 c e f+c d g-4 b e g) \sqrt {d+e x}}{4 e^2 (2 c d-b e)^4 \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}+\frac {(5 c (7 c e f+c d g-4 b e g)) \text {Subst}\left (\int \frac {1}{-2 c d e^2+b e^3+e^2 x^2} \, dx,x,\frac {\sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}}{\sqrt {d+e x}}\right )}{4 (2 c d-b e)^4}\\ &=-\frac {e f-d g}{2 e^2 (2 c d-b e) \sqrt {d+e x} \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}+\frac {(7 c e f+c d g-4 b e g) \sqrt {d+e x}}{6 e^2 (2 c d-b e)^2 \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}-\frac {5 (7 c e f+c d g-4 b e g)}{12 e^2 (2 c d-b e)^3 \sqrt {d+e x} \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}+\frac {5 c (7 c e f+c d g-4 b e g) \sqrt {d+e x}}{4 e^2 (2 c d-b e)^4 \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac {5 c (7 c e f+c d g-4 b e g) \tanh ^{-1}\left (\frac {\sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{\sqrt {2 c d-b e} \sqrt {d+e x}}\right )}{4 e^2 (2 c d-b e)^{9/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.24, size = 329, normalized size = 0.87 \begin {gather*} \frac {c (d+e x)^{5/2} \left (\frac {(-b e+c (d-e x)) \left (6 b^3 e^3 (d g+e (f+2 g x))+c^3 \left (61 d^4 g-105 e^4 f x^3+d^2 e^2 x (161 f-5 g x)-5 d e^3 x^2 (7 f+3 g x)+d^3 e (43 f+23 g x)\right )-4 b c^2 e \left (33 d^3 g+49 d e^2 f x+5 e^3 x^2 (7 f-3 g x)+d^2 e (-4 f+30 g x)\right )+b^2 c e^2 \left (65 d^2 g+e^2 x (-21 f+80 g x)+d e (-57 f+109 g x)\right )\right )}{c (-2 c d+b e)^4 (d+e x)^2}+\frac {15 (7 c e f+c d g-4 b e g) (-b e+c (d-e x))^{5/2} \tan ^{-1}\left (\frac {\sqrt {-b e+c (d-e x)}}{\sqrt {-2 c d+b e}}\right )}{(-2 c d+b e)^{9/2}}\right )}{12 e^2 ((d+e x) (-b e+c (d-e x)))^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1519\) vs.
\(2(344)=688\).
time = 0.05, size = 1520, normalized size = 4.02
method | result | size |
default | \(\frac {\sqrt {-\left (e x +d \right ) \left (c e x +b e -c d \right )}\, \left (-105 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) b \,c^{2} d^{2} e^{2} f \sqrt {-c e x -b e +c d}-35 \sqrt {b e -2 c d}\, c^{3} d \,e^{3} f \,x^{2}-21 \sqrt {b e -2 c d}\, b^{2} c \,e^{4} f x +23 \sqrt {b e -2 c d}\, c^{3} d^{3} e g x +161 \sqrt {b e -2 c d}\, c^{3} d^{2} e^{2} f x +105 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, c^{3} d^{3} e f +65 \sqrt {b e -2 c d}\, b^{2} c \,d^{2} e^{2} g -57 \sqrt {b e -2 c d}\, b^{2} c d \,e^{3} f -132 \sqrt {b e -2 c d}\, b \,c^{2} d^{3} e g +16 \sqrt {b e -2 c d}\, b \,c^{2} d^{2} e^{2} f -105 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, c^{3} e^{4} f \,x^{3}+60 \sqrt {b e -2 c d}\, b \,c^{2} e^{4} g \,x^{3}-15 \sqrt {b e -2 c d}\, c^{3} d \,e^{3} g \,x^{3}+80 \sqrt {b e -2 c d}\, b^{2} c \,e^{4} g \,x^{2}-140 \sqrt {b e -2 c d}\, b \,c^{2} e^{4} f \,x^{2}-5 \sqrt {b e -2 c d}\, c^{3} d^{2} e^{2} g \,x^{2}+6 \sqrt {b e -2 c d}\, b^{3} e^{4} f +61 \sqrt {b e -2 c d}\, c^{3} d^{4} g +60 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) b^{2} c \,e^{4} g \,x^{2} \sqrt {-c e x -b e +c d}-105 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) b \,c^{2} e^{4} f \,x^{2} \sqrt {-c e x -b e +c d}+60 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) b^{2} c \,d^{2} e^{2} g \sqrt {-c e x -b e +c d}+6 \sqrt {b e -2 c d}\, b^{3} d \,e^{3} g +43 \sqrt {b e -2 c d}\, c^{3} d^{3} e f -105 \sqrt {b e -2 c d}\, c^{3} e^{4} f \,x^{3}+12 \sqrt {b e -2 c d}\, b^{3} e^{4} g x +15 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, c^{3} d^{4} g +45 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, b \,c^{2} d \,e^{3} g \,x^{2}-90 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, b \,c^{2} d^{2} e^{2} g x -105 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, c^{3} d \,e^{3} f \,x^{2}+15 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, c^{3} d^{3} e g x +105 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, c^{3} d^{2} e^{2} f x +109 \sqrt {b e -2 c d}\, b^{2} c d \,e^{3} g x -120 \sqrt {b e -2 c d}\, b \,c^{2} d^{2} e^{2} g x -196 \sqrt {b e -2 c d}\, b \,c^{2} d \,e^{3} f x -75 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, b \,c^{2} d^{3} e g +120 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) b^{2} c d \,e^{3} g x \sqrt {-c e x -b e +c d}-210 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) b \,c^{2} d \,e^{3} f x \sqrt {-c e x -b e +c d}+60 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, b \,c^{2} e^{4} g \,x^{3}-15 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, c^{3} d \,e^{3} g \,x^{3}-15 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) \sqrt {-c e x -b e +c d}\, c^{3} d^{2} e^{2} g \,x^{2}\right )}{12 \left (e x +d \right )^{\frac {5}{2}} \left (c e x +b e -c d \right )^{2} e^{2} \left (b e -2 c d \right )^{\frac {9}{2}}}\) | \(1520\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1442 vs.
\(2 (354) = 708\).
time = 3.65, size = 2940, normalized size = 7.78 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {f + g x}{\left (- \left (d + e x\right ) \left (b e - c d + c e x\right )\right )^{\frac {5}{2}} \sqrt {d + e x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.38, size = 637, normalized size = 1.69 \begin {gather*} \frac {5 \, {\left (c^{2} d g + 7 \, c^{2} f e - 4 \, b c g e\right )} \arctan \left (\frac {\sqrt {-{\left (x e + d\right )} c + 2 \, c d - b e}}{\sqrt {-2 \, c d + b e}}\right )}{4 \, {\left (16 \, c^{4} d^{4} e^{2} - 32 \, b c^{3} d^{3} e^{3} + 24 \, b^{2} c^{2} d^{2} e^{4} - 8 \, b^{3} c d e^{5} + b^{4} e^{6}\right )} \sqrt {-2 \, c d + b e}} - \frac {2 \, {\left (2 \, c^{3} d^{2} g + 2 \, c^{3} d f e - 3 \, b c^{2} d g e - 3 \, {\left ({\left (x e + d\right )} c - 2 \, c d + b e\right )} c^{2} d g - b c^{2} f e^{2} + b^{2} c g e^{2} - 9 \, {\left ({\left (x e + d\right )} c - 2 \, c d + b e\right )} c^{2} f e + 6 \, {\left ({\left (x e + d\right )} c - 2 \, c d + b e\right )} b c g e\right )}}{3 \, {\left (16 \, c^{4} d^{4} e^{2} - 32 \, b c^{3} d^{3} e^{3} + 24 \, b^{2} c^{2} d^{2} e^{4} - 8 \, b^{3} c d e^{5} + b^{4} e^{6}\right )} {\left ({\left (x e + d\right )} c - 2 \, c d + b e\right )} \sqrt {-{\left (x e + d\right )} c + 2 \, c d - b e}} + \frac {10 \, \sqrt {-{\left (x e + d\right )} c + 2 \, c d - b e} c^{3} d^{2} g - 26 \, \sqrt {-{\left (x e + d\right )} c + 2 \, c d - b e} c^{3} d f e + 3 \, \sqrt {-{\left (x e + d\right )} c + 2 \, c d - b e} b c^{2} d g e - 3 \, {\left (-{\left (x e + d\right )} c + 2 \, c d - b e\right )}^{\frac {3}{2}} c^{2} d g + 13 \, \sqrt {-{\left (x e + d\right )} c + 2 \, c d - b e} b c^{2} f e^{2} - 4 \, \sqrt {-{\left (x e + d\right )} c + 2 \, c d - b e} b^{2} c g e^{2} + 11 \, {\left (-{\left (x e + d\right )} c + 2 \, c d - b e\right )}^{\frac {3}{2}} c^{2} f e - 4 \, {\left (-{\left (x e + d\right )} c + 2 \, c d - b e\right )}^{\frac {3}{2}} b c g e}{4 \, {\left (16 \, c^{4} d^{4} e^{2} - 32 \, b c^{3} d^{3} e^{3} + 24 \, b^{2} c^{2} d^{2} e^{4} - 8 \, b^{3} c d e^{5} + b^{4} e^{6}\right )} {\left (x e + d\right )}^{2} c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {f+g\,x}{\sqrt {d+e\,x}\,{\left (c\,d^2-b\,d\,e-c\,e^2\,x^2-b\,e^2\,x\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________